package com.test;

public class test00 {

    public static void main(String[] args){
        int[] arr = { 11,22,33,};
             method(arr);

    }
                 public static void method(int[] arr){
                  int count = 0;
                  System.out.print( "[ ");
                 for(int i = 0 ; i <arr.length ; i++){
                   if(count != arr.length-1){
                     count++;
                    System.out.print(arr[i]+",");
                      }else{
                        System.out.print(arr[i]+"]");
                       }

                 }
        }
  }
